package com.lxmes.device.domain;

import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备类型对象 device_type
 *
 * @author 张志煜
 * @date 2022-04-13
 */
public class DeviceType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long typeId;

    /** 类型编码 */
    @Excel(name = "类型编码")
    private String typeValue;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String typeLabel;

    /** 排序 */
    @Excel(name = "排序")
    private Long typeSort;

    /** 是否是重点设备 */
    @Excel(name = "是否是重点设备")
    private String isFlag;

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setTypeValue(String typeValue)
    {
        this.typeValue = typeValue;
    }

    public String getTypeValue()
    {
        return typeValue;
    }
    public void setTypeLabel(String typeLabel)
    {
        this.typeLabel = typeLabel;
    }

    public String getTypeLabel()
    {
        return typeLabel;
    }
    public void setTypeSort(Long typeSort)
    {
        this.typeSort = typeSort;
    }

    public Long getTypeSort()
    {
        return typeSort;
    }
    public void setIsFlag(String isFlag)
    {
        this.isFlag = isFlag;
    }

    public String getIsFlag()
    {
        return isFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("typeId", getTypeId())
                .append("typeValue", getTypeValue())
                .append("typeLabel", getTypeLabel())
                .append("typeSort", getTypeSort())
                .append("isFlag", getIsFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
